<%@ page language="java" contentType="text/html; charset=utf-8"    pageEncoding="utf-8"%>
<div class="headBox">
<div class="logo">風馳電訊</div>

<div class="headLink">
 <%if ( session.getAttribute("userBean") == null ){ %>
	<a href="userLogin.action">登陸</a>   |    <a href="register.action">註冊</a>
 <%} else { %>
  
              你好:<% 
              	if ( ((com.windfone.model.Member)session.getAttribute("userBean")).getName() != null ){
              		out.println( ((com.windfone.model.Member)session.getAttribute("userBean")).getName()); 
              	}else  	if ( ((com.windfone.model.Member)session.getAttribute("userBean")).getLoginName() != null ){
              		out.println( ((com.windfone.model.Member)session.getAttribute("userBean")).getLoginName()); 
              	}else  	if ( ((com.windfone.model.Member)session.getAttribute("userBean")).getCardId() != null ){
              		out.println( ((com.windfone.model.Member)session.getAttribute("userBean")).getCardId()); 
              	}
  
  %> 
  <a href="memberCenter.action"><font color="red">[進入會員中心]</font></a>&nbsp;&nbsp;<a href="memberLogout.action">[退出]</a> 
  <%} %>
	 |   
	<a href="myshoppingcar.action">購物籃</a>
</div>

<div class="headCall">銷售諮詢 及 郵購電話：0755-86175799 售後服務 及 維修諮詢：0755-86175799</div>

<div class="mianMuen">
<ul>
<li class="pages1"><a href="index.action">首頁</a></li>
<li class="pages2"><a href="mobileCenter.action">手機中心</a></li>
<li class="pages3"><a href="pjCenter.action">手機配件</a></li>
<li class="pages4"><a href="download.action">軟體下載</a></li>
<li class="pages5"><a href="newsCenter.action">新聞中心</a></li>
<li class="pages6"><a href="about.action?type=saleService">售後中心</a></li>
<li class="pages7"><a href="giftIndex.action" >積分兌換</a></li>
<li class="pages8"><a href="http://windfone.taobao.com/" target="_blank">淘寶風馳</a></li>
</ul>
</div>
<div class="clear"></div>
<script>
	function headQryProduct(){
		var headSearchCondition = document.getElementById("headSearchCondition").value;
		var searchType = document.getElementById("searchType").value;
		if ( headSearchCondition != "")
			window.location.href = "searchcenter.action?headSearchCondition="+headSearchCondition+"&searchType="+searchType;
	}
</script>
<div class="headSearch">
		<select name="searchType" id="searchType">
  			<option value="1">手機</option>
  			<option value="2">配件</option>
		</select>
		<input name="headSearchCondition" id="headSearchCondition" type="text" class="headSearchInput" />
		<input name="headSearchBtn" type="button" value="搜索" class="headSearchButton" onclick="headQryProduct()"/>
</div>

<% 
 String urlStr = request.getRequestURI();
 if ( urlStr.indexOf("detailMobile.jsp") ==-1 
	 && urlStr.indexOf("mobileCenter.jsp") ==-1
	 && urlStr.indexOf("pjDetail.jsp") ==-1
	 && urlStr.indexOf("pjFenlei.jsp") ==-1
	 && urlStr.indexOf("pjCenter.jsp") ==-1
	)
 {
%>
<div class="headPrice">
<ul>
<li><a href="priceCenter.action">最新報價</a></li>
<li><a href="postNotify.action">發貨查詢冊</a></li>
<%--<li><a href="#">分期付款</a></li> --%>
</ul>
</div>
<%} else{ %>
<div class="headCook">
<a href="index.action">网站首页</a> > 
<% if (urlStr.indexOf("mobileCenter.jsp") !=-1) {%><a href="mobileCenter.action">手机中心</a><%} %>
<% if (urlStr.indexOf("detailMobile.jsp") !=-1) {%><a href="mobileCenter.action">手机中心</a> >  ${mobile.name }<%} %>
<% if (urlStr.indexOf("pjCenter.jsp") !=-1) {%><a href="pjCenter.action">配件中心</a><%} %>
<% if (urlStr.indexOf("pjFenlei.jsp") !=-1) {%><a href="pjCenter.action">配件中心</a> >  ${selectTypeName }<%} %>
<% if (urlStr.indexOf("pjDetail.jsp") !=-1) {%><a href="pjCenter.action">配件中心</a> >  ${selectTypeName }  > ${fitting.typeName } <%} %>
</div>
<%} %>
</div>
<div class="clear"></div>
